Method and system for executing and undoing distributed server change operations

ABSTRACT

A method and system for executing and undoing distributed server change operations for a collection of server objects across multiple target servers in a transaction-safe manner is provided. In one embodiment, server change operations for a collection of server objects, such as files and configuration file entries, are specified in a transaction package. The target servers to which the specified change operation are directed are also identified in the transaction package. Parameter values for each of the identified target servers are specified through a parameter file in the transaction package. The transaction package is sent to the identified target servers, which execute the change operations on the target servers in a transaction-safe manner using these parameter values.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No. 11/768,094 filed Jun. 25, 2007, which issued as U.S. Pat. No. 8,296,755 and which is a continuation of U.S. patent application Ser. No. 10/414,958 filed on Apr. 6, 2003, which issued as U.S. Pat. No. 7,249,174 and which claims priority to, and the benefit of, U.S. Provisional Patent Application Ser. No. 60/453,308 filed Mar. 10, 2003 and U.S. Provisional Patent Application Ser. No. 60/388,112 filed Jun. 12, 2002. All of the aforementioned patents and patent applications are incorporated by reference herein in their entireties.

TECHNICAL FIELD

This invention relates to the field of server management and, more particularly, to the management of servers in a heterogeneous computing environment.

BACKGROUND INFORMATION

Information Technology (IT) administrators are facing new challenges due to a significant increase in the number of servers in an enterprise's IT infrastructure and the adoption of distributed electronic business applications. These challenges have resulted from: (1) a transition from client-server to Internet-based architectures, resulting in frequent interactions between different types of servers; and (2) the use of component application servers, such as J2EE (Java 2 Platform, Enterprise Edition) and .NET, to generate components, tools, systems, and complex application models. Faced with these challenges, an IT administrator may need to juggle hundreds of incompatible software application configurations and track thousands of server components for the thirty to forty servers he or she manages.

Currently available configuration tools are inadequate to manage a large number of software application configuration and server components across multiple servers in a heterogeneous computing environment. To manage and configure heterogeneous servers, particularly in the complex business computing infrastructure, many IT administrators use enterprise systems management (ESM) products offering monitoring tools to automate problem identification across multiple servers. However, these monitoring tools do not provide a centralized management system with a centralized configuration database, which can centrally keep track of current server components and their interdependencies across the different servers.

In addition, these ESM products provide little or no help in correcting or configuring server components in a heterogeneous computing environment. For UNIX and Linux operating system-based servers, despite the open-source and internally developed tools and scripts to handle simple configuration changes to J2EE configurations, neither the tools nor the scripts can be easily extended to address complex distributed applications.

Microsoft Window-based operating system servers are even more difficult to correct and configure than UNIX and Linux operating system based servers, due to a large number of server components having complex interdependencies. Although system management tools are available from Microsoft, they have been designed to target only small-scale homogenous Windows-based computing environments, and not the large and heterogeneous computing environment supporting multiple operating systems that most IT administrators have to manage.

Because of the inadequacies in currently available management tools, significant portions of any server configuration change operations have to be made manually by the IT administrator for each server. Accordingly, human errors can occur from these manual change operations, and from manual monitoring and tracking of each server's configuration, resulting in frequent server misconfigurations and system downtime.

SUMMARY OF THE INVENTION

To alleviate this situation, systems and methods according to the invention can be used to manage a large number of servers and their server components distributed throughout a heterogeneous computing environment.

This invention relates to a method and system for executing and undoing distributed server change operations for a collection of server objects across multiple target servers in a transaction-safe manner. Here, transaction-safe means that all required steps of each server change operation are completed before the distributed server change operation is deemed completed, and if an error occurs while performing the required steps on the target servers, any changes made from these steps are undone.

Examples of distributed sever change operations for a collection of server objects may be installing, copying, updating, or deleting server objects. In one exemplary embodiment, a collection of server objects can be copied from a single source to multiple remote target servers. Likewise, all the changes caused by copying this collection of server objects can be reversed on the affected multiple remote target servers.

In one embodiment, server change operations for a collection of server objects, such as files and configuration file entries, are specified in a transaction package. In particular, server change operations are specified in a transaction package to change code and content (files, applications, compound components, etc.), configure parameters of multiple servers simultaneously, and roll-hack the changes in the event of a failure. Server change operations in the transaction package can be specified to occur on primitive server objects, compound server objects, abstract configuration server objects, and component server objects. A primitive server object is an elemental server object that serves as a basis for all other types of server objects. A compound server object is a server object containing primitive server objects and other related compound server objects. An abstract configuration server object is a special type of a primitive server object that represents an entry in a configuration file when the configuration file is mapped to a common abstract configuration file format using a configuration file-specific grammar. A component server object is a sequenced collection of server objects that contains prerequisite and inheritance information about other types of server objects.

In one embodiment, the server change operations in a transaction package are specified in an XML-based instruction set. In another embodiment, the server change operations are specified in a text-based instruction set.

In one embodiment, the transaction package includes a transaction context, parameter file, error handling actions, a sequencing instruction for the change operations, and target server prerequisites for executing the change operations, in addition to the specified change operations. The transaction context is identified by begin-transaction and end-transaction statements that encapsulate the server object change operations. The parameter file specifies parameter values for each of the identified target servers. These parameter values are communicated to the identified target servers along with the transaction package. In one embodiment, the parameter file contains parameters referencing parameter values that are identical across the target servers. In another embodiment, the parameter file contains parameters referencing parameter values that are distinct for each of the target servers. The transaction package supports several types of errors, such as soft errors and hard errors, in its error handling actions. The sequencing instruction provides an execution sequence for the specified change operations. If this instruction is not provided locally within the transaction package, an external dependency graph is accessed to provide an execution sequence for the specified change operations. The transaction package also provides the prerequisite information for the target servers to execute the specified change operations.

In one embodiment, the user may optionally elect to proceed with a dry run. The dry run provides an additional set of tests to see if the server object change operations can be carried out by the recipient target servers before making any changes.

After the transaction package is communicated to the target servers, the specified change operations are executed on each of the identified target servers in a transaction-safe manner using the parameter values.

In one embodiment, the specified change operations can be reversed when a user makes an explicit request or when an error is detected in a transaction to maintained for the transaction package, after a partial, or full execution of the change operations. The transaction log keeps track of details of all the steps performed, so that each performed step of a change operation can be retraced and reversed from the affected target servers.

In another embodiment, multiple transaction packages can be assembled into a transaction project. All the change operations specified in a transaction project can be executed in a transaction-safe manner.

BRIEF DESCRIPTION OF THE DRAWINGS

In the drawings, like reference characters generally refer to the same parts throughout the different views. Also, the drawings are not necessarily to scale, emphasis instead generally being placed upon illustrating the principles of the invention.

FIG. 1 is a block diagram depicting an embodiment of a system for managing multiple servers in a heterogeneous computing environment.

FIG. 2 is a block diagram depicting a virtual server client in accordance with an embodiment of the invention.

FIG. 3 is a block diagram depicting a virtual server agent in accordance with an embodiment of the invention.

FIG. 4 is a flowchart depicting an embodiment of a method for receiving and executing a system call from an application program.

FIG. 5 is a flowchart depicting the details of instantiating an abstract system call in one embodiment of the method of FIG. 4.

FIG. 6 is a screen shot of an embodiment of a system implementing the method of FIG. 4.

FIG. 7 is a block diagram depicting an embodiment of a system for executing and undoing distributed server change operations in a transaction-safe manner.

FIG. 8 is a flowchart depicting an embodiment of a system for executing and undoing distributed server change operations in a transaction-safe manner.

FIG. 9 is a flowchart depicting an embodiment of a method for executing and undoing distributed server change operations in a transaction-safe manner.

FIG. 10 is a block diagram depicting an embodiment of a system for configuring multiple servers in a heterogeneous computing environment.

FIG. 11 is a flowchart depicting an embodiment of a method for configuring multiple servers in a heterogeneous computing environment.

FIG. 12 is a block diagram depicting an embodiment of a system for managing server objects as described in a embodiment of the invention.

FIG. 13 is a block diagram depicting an exemplary embodiment of the system of FIG. 12.

FIG. 14 is a user interface display in an embodiment for a system implementing the method of FIG. 11.

DETAILED DESCRIPTION

Referring to FIG. 1, a user 10, such as a system administrator, manages a number of servers 15A, 15B, 15C, 15D, generally 15, which are computers, each of which can be of the same or of different types than the other servers 15. The servers 15 are typically server-class general-purpose computers, which provide services (e.g. software applications and/or data) to other computers via one or more computer networks. For example, the servers may be application servers, routers, firewalls, load balancers, storage controllers, or a combination of these or other computers or network devices.

Examples of application servers are databases, such as the Oracle database from Oracle Corporation of Redwood City, Calif. or other business applications. Application servers may also include web servers, such as the Apache web server from the Apache Foundation, and Internet Information Server (IIS) from Microsoft Corporation of Redmond, Wash. In addition to these examples, other programs can be provided by the servers 15. It should be understood that as used herein, the term “server” is not limited to server-class computers or application servers, but refers generally to computers on which the embodiments of the invention operate, which may include other types of computers or network devices.

As shown, each of the servers 15 may use a different operating system. For example, server 15A uses MICROSOFT WINDOWS (e.g., WINDOWS NT and WINDOWS 2000), available from Microsoft Corporation of Redmond, Wash.; server 15B uses SUN SOLARIS, available from Sun Microsystems, Inc. of Santa Clara, Calif.; server 15C uses RED HAT LINUX, available from Red Hat, Inc., of Durham, N.C.; and server 15D uses IBM AIX, available from IBM of Armonk, N.Y. It will be understood that this is just one example of the operating systems that may be used on the servers 15, and other combinations and operating systems may be used on the servers 15 in accordance with embodiments of the invention. One of the benefits of the system is its ability to operate in an environment having heterogeneous servers.

In one embodiment, the user 10 manages the servers 15 via a management system 20. The management system 20 is typically a server-class computer that provides the user 10 with an ability to manager servers 15 in a consistent manner through use of application programs 25. The management system 20 may be one of the servers 15, or any server-class computer that can communicate with the servers 15 over a network. Any of the target servers 15 can be designated as the management system, as long as the designated server includes appropriate application programs and software modules to manage remotely located servers.

Application programs 25 in the management system 20 can include one or more of a command-line shell program 25A and related programs for executing shell commands (e.g., UNIX shell commands such as ls, mv, rm, etc.), a configuration manager 25B for managing system configuration, and/or other applications 25C. The application programs 25, which in some implementations are “network-aware,” communicate abstract system calls to a virtual server client 30, which in turn communicates the abstract system calls to the servers 15 that are the target(s) for execution of the operations requested by the abstract system calls. Advantageously, through use of the abstract system calls, the “network-aware” applications are able to request services from heterogeneous servers supporting different operating systems without having to modify their architecture to support each of the different operating systems.

For example, the user 10 enters commands, such as Unix shell commands, to the shell program 25A via a command line interface. Commands can be entered, for example, to distribute files, directories, software packages, and patches to the target servers 15. Commands can also be entered to edit configuration files of the target servers 15. In addition, commands can be entered to remotely reboot the target servers 15, and stop and start change operation on the target servers 15.

For example, in one implementation, the Unix shell command “ls,” which requests a server computer to list a directory of files, may be modified to be used with the user's management system 20 and the virtual server client 30 to list a directory of files from any of the target servers 15. From the user's 10 perspective, the “ls” command is used in the normal manner, except that the user 10 can identify a target server 15 for the command in a path associated with the command. For example, if the target server 15A is named “targetserver1,” the user 10 may enter the command “ls//targetserver1/path/” to list the files in the specified path on the target server 15A.

To implement this ls command of the shell program 25A on the user's management system 20, the shell program 25A translates the system calls called by the “ls” command into one or more abstract system calls. These abstract system calls are sent to the virtual server client 30, which in turn sends the abstract system calls to appropriate target servers 15, in this case, the target server 15A. After execution of the command on the target servers 15, the results are communicated back to the user 10 via the application programs 25 and the virtual server client 30.

Other programs can be made “network aware”. For example, in some implementation, script interpreters, such as interpreters for the Perl and Python scripting languages can be modified to work with the virtual server client 30. Generally, selected system calls made by an application program are translated into abstract system calls, which are communicated through the virtual server client 30 to the servers 15.

In addition to providing shell commands and other application programs, the management system 20 may include a configuration manager 25B. In one embodiment, the configuration manager 25B is used to configure one or more of the servers 15. The configuration manager is a software application program that implements server change operations that are in turn translated into the corresponding operating system specific commands on the target servers 15.

In one implementation, an application program 25 directs abstract system calls to specific target servers 15. In another implementation, the application program 25 can also direct abstract system calls to a group of servers. A group of servers can be pre-defined or dynamically defined based on attributes such as operating systems, capacity, IP address ranges, and installed applications. For example, the application program 25 can direct an abstract system call to a group of servers, consisting of a subset of servers 15 running the Linux operating system. Application program 25 thus can deploy a command onto a server in this group without specifying a particular server in the subset. In this way, the application program 25 does not need to keep track of each server, nor determine which servers have sufficient capacity or features to run the program; rather, the application program 25 can deploy commands (or change operations) to a predetermined group, and the virtual server client 30 decides which specific server should run these operations.

The virtual server client 30, which may be included in the management system 20, presents the servers 15 to the application programs 25 as a single “virtual server” on which system call operations can be executed. The virtual server client 30 is implemented by a software library, which in one implementation is roughly analogous to the C library, libc. The application programs 25 can be statically or dynamically linked to the virtual server library, which is called libnc. In one embodiment, non network-aware application programs 25 are converted to network-aware programs by replacing calls to the libc library with equivalent calls to the libnc library, which provides abstract network-aware system calls.

In an alternative embodiment, the virtual server client 30 may be implemented as part of an operating system. For example, the operating system running the user's management system 20 can receive abstract system calls and communicate them to the remote target servers 15. Accordingly, for purposes of executing an abstract system call a target servers 15, the source of the abstract system call is immaterial.

In some embodiments, the virtual server client 30 communicates with the servers 15 through virtual server agents 35 associated with the servers 15, which will be described in detail below. The virtual server client 30 communicates with virtual server agents 35 to present the multiple physical target servers 15 as a single virtual server to the application programs 25. As an abstract representation of a collection of the physical servers 15, the virtual server intercepts the abstract system calls via the virtual server client 30 and routes the abstract system calls to the virtual server agents 35.

When the virtual server client 30 receives an abstract system call from an application program 25, the virtual server client 30 checks the abstract system call to determine whether this system call is a local call or a remote call. If the abstract system call is a local call, then the operating system running, the management system 20 executes the system call locally. If the abstract system call is determined to be a remote call, the virtual server client 30 sends the abstract system call to a virtual server agent 35 associated with a target server 15 via a message protocol. For example, when an “ropen” abstract system call, representing a remote file open command, is received by the virtual server client 30, the data representing the “ropen” command and parameters associated with the “ropen” command are sent to appropriate virtual server agents 35. The target-servers 15 for a system call are identified by the user 10 or the application programs 25. The virtual server client 30 identifies the target servers 15 from their virtual server agents 35 and determines where the system call should be directed.

The virtual server agents 35 receive abstract system calls from the virtual server client 30 and prepare the abstract system calls for their associated target servers 15. When the virtual server client 30 determines to which virtual server agents an abstract system call should be directed, each of the virtual server agents 35 receives the abstract system call. As a part of preparing the abstract system call for the associated target servers 15, the virtual server agents 35 provide security measures to ensure that the user 10 is authorized to access the target servers 15, and that the virtual server agent 35 controls the user access, as provided by the associated target server 15. Once the user 10 is authorized, the virtual server agent 35 translates the abstract system call into an operating system specific call directed to its associated target server 15. The target server 15 executes the abstract system call and returns the results back to the virtual server agent 35, which in turn sends the results back to the appropriate application programs 25 via the virtual server client 30.

In one embodiment, the virtual server agents 35 (also referred to as Remote System Call Daemon or RSCD agents) are software modules attached to their corresponding target servers 15. In another embodiment, the virtual server agents 35 are software modules that are not attached to their corresponding target servers 15, but are in communication with their associated remotely located target servers 15.

In some embodiments, instead of acting as a messenger that sends an abstract system call to a specific target server 15, one of the virtual server agents 35 can represent a group of physical servers. Thus, if the same command needs to be executed on multiple servers, these servers can be aggregated into a group, represented by a single virtual server agent 35, so that appropriate system calls can be made to a group of servers simultaneously via that virtual server agent 35.

Generally, abstract system calls may include all types of system calls including file system calls, operating system calls, and the like. An abstract system call typically is implemented as a modification of an analogous standard operating system specific call. For example, the abstract system call. “ropen” is analogous to a standard system call “open,” which opens a file on a server.

With minor modifications to an application program's source code, any application program can make operating system agnostic abstract system calls. By changing the system calls to abstract system calls, any genetic application program can be made into a network aware-application that can operate transparently across servers supporting different operating systems.

In one embodiment, only the system calls that are applicable to all of the target servers 15 can be modeled as abstract system calls. For example, if the target servers 15 include Unix-based servers, it may not be possible to model a system call to update a registry as an abstract system call, since a registry, which is a Windows specific object, does not exist and has no relevance for Unix-based server platforms.

Referring to FIG. 2, in one embodiment, the virtual server client 30 includes various software modules which implement its functionality. These modules include a receiver 40 that receives an abstract system call made by an application program 25, and forwards the abstract system call to an instantiator 42. The receiver 40 is a software module that acts a messenger between the software application programs 25 and the instantiator 42. In one embodiment, the receiver 40 receives the abstract system call from one of the software application programs 25 used by the user 10. The receiver 40 then forwards the abstract system call directly to the instantiator 42. In another embodiment, the receiver 40 may receive standard operating system specific system calls from an application program 25. The receiver forwards such standard system calls to the instantiator 42 for the instantiator 42 to decide to where the system calls should be directed.

The instantiator 42 instantiates abstract system calls in a thread-safe manner. The thread-safe instantiation shares a single resource between multiple operations without requiring changes to the architecture of the application programs requesting the operations. Typically, thread-safe instantiation shares the same virtual server client 30 between multiple simultaneous execution of system calls. The use of the shared resource, such as the virtual server client 30, is coordinated, so that the execution of one operation does not impact the execution of other operations. In one embodiment of the thread-safe instantiation, the application programs 25 can instantiate multiple commands (or operations) via the instantiator 42. For example, the application programs 25 may invoke multiple “ropen” system calls that are directed to one or more target servers 15. The “ropen” system call is received by the instantiator 42 in the virtual server client 30. The instantiator 42 then distributes the “ropen” abstract system call to each of the virtual server agents associated with the target servers, so that multiple “ropen” calls can be executed simultaneous by the target servers 15.

In one embodiment, the instantiator 42 is implemented as a software library that provides routines that represent the abstract system calls. One particular implementation of the software library is called “libnc.” Libnc is a “network-aware” library that is analogous to the standard C library. The Libnc library supports the network aware application programs 25 by instantiating the abstract system calls generated by the application programs 25.

In one embodiment, the instantiator 42 determines to which virtual server agents 35 an abstract system call should be directed. The instantiator 42 identifies target servers 15 by finding the target server identifiers specified in the abstract system call. The target server identifier may include a path name, which in turn may include a host name or a network address (e.g., IP address) for the server. The target server 15 may also be identified by server names explicitly stated in a file which is to be run on specific named servers. Alternatively, the server identity may be inferred from a subset of servers or a group of servers (e.g., a group of Linux servers) to which the target server 15 belongs.

Before transmitting the abstract system call to the virtual server agents 35, the instantiator 42 can also specify the priority, CPU utilization, and memory utilization of the system call for the target servers 15, so that the identified target server 15 platforms can perform the requested services as specified by the virtual server client 30. Once the abstract system call has been instantiated, it is sent to an encryptor 44 for further processing.

The encryptor 44 encrypts the abstract system call before sending it to a transmitter 46 for transmission to the virtual server agents 35. The encryptor 44 uses standard encryption protocols and algorithms to secure communication between the virtual server client 30 and the virtual server agents 35. Examples of standard encryption protocols include, but are not limited to, SSL, (Secure Sockets Layer), Kerberos, and Shared Secret protocols. SSL, uses a public key to encrypt data. Kerberos assigns a unique key to each authorized user. Standard encryption algorithm includes, but are not limited to, DES (Data Encryption Standard), 3DES (Triple DES), Blowfish, and AES (Advanced Encryption Standard).

The encryption protocol and algorithm used by the encryptor 44 must be supported by each virtual server agent 35 with which the virtual server client 30 will communicate. For example, if the virtual server client 30 supports SSL, the virtual server agent 35 must be able to support SSL for that protocol to be used. If the virtual server client 30 supports Kerberos, the virtual server agent 35 must also be able to support Kerberos for that protocol to be used.

The transmitter 46 uses a network interface protocol, such as TCP/IP or Ethernet, to send the abstract system call over a network to the virtual server agents 35. The transmitter transmits the same abstract system call to each target virtual server agent. In one embodiment, the transmitter 46 uses an IP address to determine to which of the target servers 15 an abstract system call should be sent. An IP address may be directly included in the abstract system call or may be inferred from a server identifier included in the abstract system call. The virtual server agent 35 accepts the abstract system call containing the IP address of the target server 15 associated with that virtual server agent 35. Once the virtual server agent 35 receives the abstract system call, the virtual server agent 35 processes the abstract system call for execution on the target server 15.

Referring to FIG. 3, each virtual server agent 35 includes software modules that implement its functionality. These modules include a receiver 50, which receives abstract system calls from the virtual server client 30, and transfers the abstract system calls to a decryptor module 52.

Before the user 10 can access the user's management system 20, the user 10 is authenticated to ensure that the user 10 is in fact the person he or she claims to be. The user 10 can be authenticated in many ways. In one embodiment, the user 10 is authenticated by the operating system of the management system 20 and the target servers 15 subsequently inherit the user's 10 identity. In another embodiment, SRP (Secure Remote Password) or PKI Cryptography (X.509 Certificates) is used to authenticate user 10. In yet another embodiment, the Kerberos 5 system can be used to authenticate the user 10 by assigning a unique private key to the user 10.

The source identifier module 52 identifies the source machine, e.g., the user's management system 20. The source identifier module 52 first determines the source machine through a network address (e.g., IP address) that was submitted to the virtual server agent 35 from the virtual server client 30 with the abstract system call and checks to see if the source host is authorized.

By identifying the source machine, the source module 52 determines the security protocols to be used by the virtual server agent 35 for encryption and decryption. In one embodiment, the virtual server agent 35 can support different security protocols. For example, the virtual server agent 35 can flexibly support either SSL, or Kerberos based on the security protocol of the incoming data from the virtual server client 30. Next, the abstract system call is sent to a decryptor 54, which decrypts the abstract system call. From the decrypted abstract system call, the user identifier module 55 identifies the user 10 invoking the application programs 25 from the source machine and verifies that the user 10 is authorized to access the source machine.

After the user is identified by the user identifier 55, an identity mapper 56 and an impersonator 58 provide additional security measures as the user 10 tries to access the remote target servers 15 from the user's management system 20. The identity mapper 56 optionally maps the authenticated user (presented user) to another user (effective user) and locates a local user identity on the target server 15 that corresponds to the authenticated identity of the effective user. Through the impersonator 58, the user 10 is impersonated on a remote target server 15, so that if the effective user is identified and exists as a local user on the remote target server 15, the user 10 takes on the local identity of the effective user and the permissions provided by that identity on the remote target server 15. Thus, the user's 10 access to the remote target server 15 is further restricted to the appropriate levels provided by the permissions granted to the effective user's local identity on the remote server 15. For example, if the user 10 is authenticated as “Joe” on the management system 20 and mapped to an effective user “Jane”, local permissions of “Jane” will be available to the user 10 on the remote target server 15. If “Jane” does not exist on the remote target server 15, then the user 10 will be given a guest account. In one embodiment, the combination of the presented user and the role, which is defined by Role Based Access Control (RBAC), is mapped to an effective user. For example, user “Joe” having the role of a junior administrator can be mapped to an effective user named “junior administrator.” Another user “Bob” also having the role of a junior administrator can be mapped to the same effective user named “junior administrator.”

The effective user's access for presented user 10 is further restricted by an authorizer 60, which permits the user 111 to perform predetermined actions or access predetermined resources on a particular target server 15. This is achieved by using Access Control Lists (ACLs) to manage the effective user's access to resources on the remote target servers 15. The ACL informs the operating systems of the remote target servers 15 of the access rights of the effective user on specific server resources, such as files or directories. For example, if the user 10 is mapped to the effective user “junior administrator”, then the user 10 is only permitted to perform read-only commands on certain directories or files of a group of remote target servers 15 and cannot effect any changes to the target servers 15.

After the user is authorized, a translator 62 translates the abstract system call into a standard operating system call that is understandable and executable by the target server 15. The translator 62 examines the abstract system call and identifies a standard operating system specific system call that is analogous to the abstract system call and is supported by the operating system running the associated target server 15. Once the analogous standard system call is identified, the translator changes the abstract system call to the standard system call. This standard operating system call is forwarded to an executor 66 for execution on the target server 15.

Once the executor 66 receives a standard operating system call, the executor 66 performs the services that are requested by the standard system call. In one embodiment, the executor 66 is the operating system running on the target server 15. The operating system examines system calls and carries out the operations requested by the system call by, for example, communicating with other applications running on the target server 15.

An audit log 64 is maintained by each virtual server agent 35 to keep track of the names of the users and all the activities performed by each user, and to troubleshoot server changes and configuration errors. For example, the audit log 64 saves information about the activities requested and performed by authorized users, information about data, such as the system calls and the results of the system calls, that were transferred back and forth between the virtual server client 30 and the virtual server agent 35, as well as all parameters associated with the abstract system call. The content of the audit log 64 is then transmitted to a centralized aggregated log kept for all of the virtual server agents 35.

A first example of security measures incorporated in an embodiment of the virtual server implementation follows. First, the user 10 logs into the management system and is authenticated as “Joe” during the login process. This authentication process can be achieved by using a known network authentication server, such as NTLM, K5, AD, APM, NIS, etc., depending on the operating system running on the management system 20. After the user “Joe” is authenticated in the management system 20, the user “Joe” is authenticated for the target servers 15 by inheriting the user “Joe” identity through the management system 20.

Next, the user 10 enters a “ls” command, requesting a listing of files on the remote target server 15A, through the shell command program 25A on the management system 20. The shell command program 25A generates an abstract system call in response to the command and sends the abstract system call to the virtual server client 30 to proceed with the user's 10 request. The virtual server client 30 examines the security configuration of the abstract system call and encrypts the system call using a shared secret key scheme with a encryption algorithm, such as DES, 3DES, or Blowfish. Once the abstract system call is encrypted, the system call is communicated across a network to the virtual server agent 35A of the target server 15A.

When the virtual server agent 35A receives the abstract system call, the target server's 15A agent 35A attempts to decrypt the message using the key shared with the virtual server client 30. The virtual server agent 35A checks to see if the user “Joe” is recognized as a local user on the target server 15A through an effect IC user. If the user “Joe” is recognized as a local user, then the virtual server agent examines the access control list to determine if the combination of the user “Joe” 10, target server 15A, and the abstract system call is allowed. If the combination is allowed, then the access control list is used to determine whether any further restrictions apply to the user's 10 access to the target server 15A. The virtual server agent 35A executes the system call in accordance with any security restrictions, encrypts the results using the same-shared secret key. The results of the “ls” command are sent back to the virtual server client 30, where they are decrypted and displayed to the user.

In a second example of security measures incorporated in an embodiment of the virtual server, the user 10 is authenticated using of SRP or PKI Certificates. Once the user 10 is authenticated the user 10 enters an “ls” command, requesting a listing of files on the remote server 15A, through the shell command program 25A on the management system 20. The shell command program 25A generates an abstract system call in response to the command and sends the abstract system call to the virtual server client 30. The virtual server client 30 examines the security configuration of the abstract system call and encrypts the abstract system call using public key cryptography, standard encryption algorithms, such as DES, 3DES, or Blowfish, may be used for exchange of session key between the virtual server client 30 and the target server agent 35A to establish a communication session between them.

After decrypting the abstract system call received by the virtual server agent 35A, the virtual server agent 35A checks to see if the user “Joe” is recognized as a local user on the target server 15A through an effective, user. If the user “Joe” is recognized as a local user, then the virtual server agent 35A examines the ACL to determine if the combination of the user 10, target server 15A, and the abstract system call is allowed. If the combination is allowed, then the access control list is used to determine whether any further restrictions apply to the user's 10 access to the target server 15A. The virtual server agent 35A executes the system call in accordance with any security restrictions, and encrypts the results using the established session key. The results of the “is” command are then sent back to the virtual server client 30, where they are decrypted and displayed to the user.

A third example of security measures incorporated in an embodiment of the virtual server implementation follows. If the management system 20 has an existing Kerberos 5 (K5) infrastructure in place, the user 10 can be authenticated by entering a Kerberos password to the management system 20. Once the user 10 is logged in as the authenticated user “Joe,” the user 10 enters the “ls” command, requesting a listing of files on the remote target server 15A, through the shell command program 25A on the management system 20. The shell command program 25A generates an abstract system call in response to the command and sends the abstract system call to the virtual server client 30 to proceed with the user's 10 request. The virtual server client 30 then sends the abstract system call and a Kerberos ticket, which is retrieved from a Kerberos Domain Controller (KDC) to the virtual server agent 35A.

After the virtual server agent 35A receives the abstract system call and the ticket, the virtual server agent 35A validates the abstract system call by verifying the ticket via the KDC. Once validated, the virtual server agent 35A checks to see if the user “Joe” is recognized as a local user on the target server 15A through an effective user. If the user “Joe” is recognized as a local user, then the virtual server agent examines the ACL to determine if the combination of the user “Joe” 10, target server 15A, and the abstract system call is allowed. If the combination is allowed, then the access control list is used to determine whether any further restrictions apply to the user's 10 access to the target server 15A. The virtual server agent 35A executes the system call in accordance with any security restrictions, encrypts the results using a Kerberos key. The results of the “ls” command are sent back to the virtual server client 30, where they are decrypted and displayed to the user.

Referring now to FIG. 4, a method for managing multiple servers as a single virtual server is described. First, in step 400, the system represents multiple servers as a single virtual server. Next, in step 410, based on a user's request for operations to be performed on target servers, the virtual server client 30 receives an abstract systems call from an application program 25. Finally, in step 420, the virtual server client instantiates the abstract system calls and sends the abstract system call to the virtual server agents 35 for execution.

FIG. 5 shows steps involved in instantiating an abstract system call. First in step 422, the virtual server client 30 identifies the target servers 15 through target server identifiers provided within the abstract system call. Once the target servers are identified, in step 424, the abstract system call is transmitted to the virtual server agents associated with the identified target servers. The virtual server agents 35 prepare the abstract system call for the target servers 15, so that the abstract system call can be the executed on the target servers 15. For example, for the target server 15A, the abstract system calls are translated into standard Windows NT/W2K specific system calls that are executable by the operating system running on the target server 15A. Upon completion of execution of the system call, in step 426, the virtual server client 30 receives the results of the execution from the virtual server agents 35.

In one embodiment, multiple commands generate multiple system calls, which can be aggregated into a single high-level abstract system call by an application program 25. For example, if two commands, such as copy and change permission commands, are to be made to a target server 15A, the abstract system calls carrying out these commands, such as ropen, rread, rwrite, and rchmod system calls, can be aggregated into one high-level abstract system call. When received by the virtual server client 30, the virtual server client 30 can disintegrate the high level abstract system call into the original abstract system calls and transmit the abstract system calls separately to virtual server agent 35. In another embodiment, instead of disintegrating the high-level system call into the original abstract system calls at the virtual server client 30, the high-level abstract system call is received by a virtual server agent 35, which in turn translates the high-level abstract system call into separate operating system specific system calls to be executed on the target server 15.

FIG. 6 is a screenshot showing a command being issued to multiple servers through the management system 20. As shown here, server names used as parameters for commands are preceded by two slashed to distinguish them from a path name, which is generally separated by a slash. For examples, “//redhatbiz.1/etc” specifies the /etc path on the server named “redhatbiz1.” Thus, as seen in the screenshot, to compare the “/etc/hosts” file on two different servers, one named “redhatbiz1,” and the other named “redhatbiz2,” the user 10 enters the command “diff//redhatbiz1/etc/hosts//redhatbiz2/etc/hosts,”

Referring back to FIG. 1, in an alternative embodiment, the user 10 manages the target servers 15 by executing and undoing distributed server change operations across the target servers 15 in a transaction safe-manner, using the virtual server implementation described above. Distributed server change operations request the operating systems of the target servers 15 to update, delete, install, and/or copy server assets and/or configuration file entries of the target servers 15. Transaction-safe server change operations ensure that all of the required steps of each server change operation are completed before the distributed server change operations are deemed completed. Further, if an error occurs while performing the required steps on the target servers 15, any changes made from these steps are undone, and values of the target servers' 15 assets and/or configuration entries are returned to the values they had before execution of the server change operations. In one embodiment, the application programs 25 can generate a transaction package that bundles an instruction set and necessary server contents for the operating system of each of the target servers 15 to carry out the server change operations.

Referring to FIG. 7, in one embodiment, the configuration manager 25B generates a transaction package 700 that includes files or configuration file entries 705 (together referred to as server objects), a parameter file 710, and an instruction set 715 to carry out the server change operations on one or more target servers 15 that are specified by an external file, as requested by the configuration manager 25B.

In one embodiment, the instruction set 715 includes an execution sequence of the server change operations provided for the operating systems of the target servers 15 that carry out the server change operations. If this information is not provided in the instruction set 715 in the transaction package 700, an external dependency graph 720 is accessed to provide an execution sequence of the server change operations. For example, the external dependency graph 720 can provide information about directional relationships between server objects. In particular, if NT-based program A is a prerequisite for another NT-based program B, to successfully execute programs A and B, program A must start before program B and program B must stop before program A. Although the sequence information is used to order the sequence of change operations for the server objects that are specified in the transaction package, the sequence information is also used to add implied server object change operations for related server objects, such as server objects that depend on and/or depend from these specified server objects, that are not specified in the transaction package. In particular, continuing from the previous example, if the only change instruction provided in a transaction package is to stop program A, the sequence information adds the implied instruction to stop program B and then stop program A based on the directional relationship between programs A and B. Thus, the sequence information from the dependency graph determines the sequences of server change operations to be performed not only on the specified server objects, but also on their related server objects. If an error occurs while performing the service change operations, the sequence information also causes the server change operations to stop and to be reversed not only on the specified servers, but also on the related server objects.

As described above, if the instruction set 715 provides the sequence information for the server change operations, the instruction set 715 overrides the sequence information provided by the dependency graph 720. Similar to the sequence information provided by the dependency graph 720, the instruction set 715 provides the information related to the order in which the server change operations should be performed. The related server objects of the specified server objects are provided, so that the server change operations can effect changes on the related server objects, as well as the specified server objects. The instruction set 715 also provides dependency information between types of servers. For example, if an application server depends on a database server, the sequence information provided in the instruction set 715 will instruct the execution of the database server change operations before the execution of the application server change operations.

In one embodiment, the instruction set 715 specifies server change operations to occur on any of the four types of server objects 705: primitive server objects, compound server objects, abstract configuration server objects, and component server objects. A primitive server object is an elemental server object that serves as a basis for all other types of server objects. For example, for Linux-based servers, primitive server objects include, but are not limited to, files, directories, Redhat Package Manager files, and configuration file entries for text configuration files, such as the “inetd.conf” file. For Solaris-based servers, primitive server objects include, but are not limited to, files, directories, packages, patches, and configuration files entries for configuration files, such as the “inetd.conf” file. For MS NT or W2K-based servers, primitive server objects include, but are not limited to, files, file ACLs, directories, directory ACLs, application programs, hot fixes, the registry entries, registry entry ACLs, COM/COM+ (component object model) catalog entries, Metabase entries, users, accounts, and configuration file entries for all configuration files, such as “.ini” files.

A compound server object is a server object containing primitive server objects and other related compound server objects. For example, an extended component object model (COM+) object, an NT or W2K-based compound server object, contains primitive server objects, such as a COM+ catalog entry, NT registry entries, and DLL files. In yet another example, an Enterprise JavaBeans (EJB) object, a compound server object, contains primitive server objects including a Java Archive (JAR) file and multiple configuration file entries. In another example, a server process is a compound server object, containing primitive server objects, such as configuration file entries (e.g., a permission entry, a priority entry, a control signal entry), files, and executables.

An abstract configuration server object is a special type of a primitive server object that represents an entry in a configuration file via a corresponding entry in an abstract configuration file, where mapping of a configuration file to a common abstract configuration format is provided by a configuration file-specific grammar. For example, in the MS NT/W2K environment, configuration file entries are stored in “.ini” files or XML configuration files in the UNIX environment, configuration file entries are stored in text files such as “inetd.conf” files or “httpd.conf”, or XML configuration files.

To reconcile the difference between the configuration file entry formats across different servers, a common abstract configuration format is provided by normalizing configuration file entries through a supported configuration file-specific grammar. By modeling each configuration file entry as an abstract configuration file entry through this normalization process, server change operations may be made based on the normalized abstract configuration file entries. The change operations requested by the abstract configuration file entries are performed, and the changes are then communicated to the actual configuration file entries. Thus, in this embodiment, configuration file entries can be individually managed through use of abstract configuration file entries, without having to change the entire configuration file each time a server change operation changes an individual entry. Configuration file-specific grammars may be provided for numerous systems, including Solaris, Linux, NT4/W2K, Apache, Web Logic, and Web Sphere.

A component server object is a sequenced collection of server objects. For example, an NT Service Pack is a sequenced collection of NT Hot Fixes to be applied in a predefined order. Accordingly, a collection of predefined related change operations can be effected in order through a component server.

In addition to the constituencies of the instruction set 715 described above, the instruction set 715 specifies the server change operations to be made across the target servers 15 on a collection of predetermined server objects by communicating with the server objects (e.g., files or configuration file entries 705), the dependency graph 720, and the parameter file 710. Server change operations can be used to deploy or copy files, directories, and software packages to the target servers 15. Change operations can also be used to edit configuration file entries 705 without having to log into each target server 15. In one embodiment, the instruction set 715 provides the information needed by the target servers 15 and their associated virtual server agents 35 to carry out the server change operations. In one embodiment, the instruction set 715 provides a transaction context that is identified by begin-transaction and end-transaction statements encapsulating the server object change operations. After the begin-transaction statement is made, the instruction set provides the necessary information to perform the change operations requested by the application programs 25.

The instruction set 715 also provides error-handling instructions for the target servers and their associated virtual server agents. In one embodiment, several types of errors are available. Soft errors are available to alert the target servers and their virtual server agents of a likelihood of occurrence of an error during server change operations. Because no actual error has occurred, the user 10 may ignore the soft errors and continue with the execution of the server change operations. Alternatively, the user 10 may instruct the virtual sever agents to explicitly undo all the changes made from the execution of the server change operations after reviewing the error information returned by the soft errors.

Hard errors are available to notify the virtual server agents of an occurrence of an error during the performance of server change operations on the target servers. In one embodiment, the hard errors can be programmed to automatically trigger undo operations to undo any of the changes made during the execution of the server change operations. In another embodiment, the hard errors can be programmed to abort the execution of the remainder of transaction package change operations. The hard errors are triggered by error conditions set forth in the instruction set 715. These error conditions specify that if certain conditions occur, the hard errors should be sent to the target servers and their associated virtual server agents.

The instruction set 715 also includes prerequisite information for the instructions. An example of this prerequisite information can include, but are not limited to, the minimum set of change operation instructions that must be specified in a transaction package for its successful execution. For example, to successfully add a COM+ component on the target servers, instructions for adding the COM+ entry in the catalog, the corresponding Registry entry, and the corresponding DLL file must be specified in the transaction package. Another example of the prerequisite information can include types of permissions needed to carry out the change operations, minimum disk space required by the target servers 15, and the type of operating system required. In addition, the prerequisite information can also include implicit instructions for hierarchical server objects. For example, to add a file in the target servers, the parent directory for the file should exist in the target servers, so that the file can be created under the specified parent directory in these servers.

In one embodiment, the instruction set 715 defines the changes that need to be made on the server objects by using named parameters, and later replacing the parameters with actual values obtained from a parameter file 710. The virtual server agents 35 receive the transaction package 700 on behalf of their associated target servers 15, and replace the named parameters with values obtained from the parameter file 710. These named parameters are particularly useful when performing server change operations on server objects that are directed to multiple target servers 15, because the named parameter representing the identity of each target server can be replaced with the actual server identifiers by the virtual server agents 35. For example, named parameters of an instruction can reference a path name for a target server 15 that includes a host name or an IP address of the target server 15. These parameters are replaced with actual server identifiers for each target server 15, as provided in the parameter file(s) 710.

In one embodiment, the parameter file 710 can be either a global parameter file or a host-specific parameter file. A global parameter file contains parameters that are configured by the user 10, thus the identical global parameter file is passed to all target servers 15. A host specific parameter file contains parameters that are specific to each of target servers 15, thus the host specific parameter file is different for each of target servers 15. Parameter values contained in the global parameter file are useful when copying the same server object to the same destination on multiple target servers 15. Examples of this type of parameter are the user's name and password. For parameter values contained in the host-specific parameter file, the parameter values are resolved by each of the target servers 15. Examples of these parameters are host names, and path names of the target servers 15. In addition, there are intrinsic parameters that are resolved through host environment variables on the target server. In one embodiment, one or more parameter files 710 are associated with one or more target servers. For example, for a Window-based target server, “windir” and IP address are examples of host environment variables that can be used to resolve intrinsic parameters associated with one or more target servers and passed via the transaction package 700.

Referring to FIGS. 1 and 7, in one embodiment, instead of using abstract system calls to carry out server change operations generated by the application programs 25, a transaction package 700 can be used to carry out these change operations using an XML-based instruction set 715. To accommodate both system call level commands and XML-based instruction sets, each virtual server agent 35 is divided into two parts. One part of the virtual server agent 35 is an XML API that can interpret the XML-based instruction set 715 contained in the transaction package 700, and the other part of the virtual server agent 35 is a system call API that can interpret abstract system calls. Thus, when a virtual server agent 35 receives an XML-based transaction package 700 through die virtual server client 30, the XML-based instruction set 715 in the transaction package 700 can be interpreted via the XML API. In an alternative embodiment, the transaction package 700 can be implemented with a text-based instruction set 715. The commands of the text-based instruction set 715 are translated into abstract system calls that are in turn interpreted by the system call API.

Below is an example of an XML-based transaction package, named “Package_(—)1.XML,” specifying a prerequisite, transaction context, compound server object, sequence, and error handling information using an XML-based instruction set 715.

Package_1.XML <blpackage schema-version=“2.0” created-date=“02/12/03” modified- date=“02/22/02” revision=“23”> <name> name of the blpackage </name> <description> description of the package </description> <source type=“host”>web-demol</source> <!-- default parameters --> <param name=“$APP_PATH”> c: \program files\app </param> <param-file>foo.params</param-file> <applies-to>  <condition>   <os>“$(os) = Windows”</os>   <os-version>$(os-version) > 5</os-version>   <service-pack>2</service-pack>  </condition> </applies-to> <!-- requires the following items before we deploy this package --> <depends>  <condition>   <application>SQL server</application>   <version>$(version) = 8.0 </version>  </condition> </depends> <!-- failure conditions if the following exit on target --> <FailIf>  <ErrorLevel <4  /> </FailIf > <transaction id=“0”>  <command id = “1005” undo=“net start w3svc”>net stop w3svc</command>  <service action=“add” refid=“1003” key=“RSCDsvc”>   <depends>    <file refid=“1002”/>   </depends>  </service>  <command id = “1006” undo=“net stop w3svc”>net start w3svc </command>  <file action=“add” key=“%WINDIR%ado.dll” refid=“1001”/>  <file action=“add” key=“%WINDIR%/System32/svchost.exe” refid=“1002” />  <assets>   <file id=“1001”>    <name>ado.dll</name>    <source>0</source>    <attributes>2</attributes>    <created-date>02/12/03</created-date>    <modified-date>02/22/03</modified-date>    <owner></owner>    <group>0</group>    <acl key=“%WINDIR%ado.dll” owner=“BUILTIN\Administrators”>     <ace action=“add” id=“1313”>web admins</ace>     <acemode>0</acemode>     <aceflags>3</aceflags>     <acemask<1179817</acemask>     <ace action=“add” id=“1314”>dbas</ace>     <acemode>1</acemode>     <aceflags>3</aceflags>     <acemask>2032127</acemask>    </acl>   </file>   <file id=“1002”>    <name>svchost.exe</name>    <source>0</source>    <attributes>2</attributes>    <created-date>02/12/03</created-date>    <modified-date>02/22/03</modified-date>    <owner></owner>    <group>0</group>    <acl key=“%WINDIR%ado.dll” owner=“BUILTIN\Administrators”>     <ace action=“add” id=“1313”>web admins</ace>     <acemode>0</acemode>     <aceflags>3</aceflags>     <acemask>1179817</acemask>     <ace action=“add” id=“1314”>dbas</ace>     <acemode>1</acemode>     <aceflags>3</aceflags>     <acemask>2032127</acemask>    </acl>   </file>   <service id=“1003” name=“RSCDsvc”>  <binary_path>%WINDIR%/System32/svchost.exe</binary_path>    <name>RSCDsvc</name>    <description></description>    <state>Stopped</state>    <runas>     <userid>$Token1</userid>     <pwd>$Token2</pwd>    </runas>   </service>  </assets> </transaction> </blpackage> The Parameter file foo.params contains $TOKEN1 as a parameter that corresponds to user id—“R2D2\-web-admins” $TOKEN2 as a parameter to password for R2D2\web-admins—“c3-po”

In this example, the <blpackage schema> tag denotes the beginning of the instruction set 715. The <name>, <description> and <source type> tags respectively provide the package name, description, and source server, in this example “web-demo1,” server, from where the package was created. The <param> tag is use to specify location, in this example “c:\program files\app”, of parameters having the name of “$APP_PATH” within the package 700, while <param-file> tag is used to specify an external parameter file 710 called “foo.params”. In the prerequisite section, which is introduced with the <applies-to> tag, the MS Windows operating system, version greater than 5 and with service pack 2, is specified as a prerequisite to carry out this instruction set. Also in the prerequisite section, the <depends> tag, indicates that SQL Server, version 8, is a pre-requisite for the package. The error handling information, which is introduced with the <FailIF> tag, specifies that the server operations should fail if error level falls below 4.

The <transaction id=“0”> tag introduces the set of change operations requested, and any dependency information for the specified server change operations. The execution sequence information for the server change operations is provided under the <depends> tag. In this example, the order of the operations, -stop w3svci, add service RSCDsvc, start w3svc, add file ado.dll, and add file svchost.exe, would occur in the following order: stop w3svc, add file svchost.exe, add service RSCDsvc, start w3svc, and add file ado.dll.

The server assets that are being affected by the server change operations are specified under the <assets> tag. This example has three assets—two files, id=1001 and id=1002, and one service, id=1003. Each file has a corresponding nested File ACL having the <acl key> tags.

The parameter file 710, “foo.params” has two parameters that are used in the transaction package 700, named as “$TOKEN1” and “$TOKEN2”. Instead of passing physical values directed to each target server, the named parameters are sent, and are resolved by the parameter file 710 when the parameter file 710 substitutes the actual values that are specific for each target servers 15 for the named parameters. As shown in this example, these values can be a path for a collection of server objects (e.g., files), a user name, or a password, in this example, the first parameter, $TOKEN1, corresponds to the user name “R2D2\web-admins”, and the parameter $TOKEN2 corresponds to the password “c3-po.”

In one embodiment, multiple transaction packages can be aggregated into a transaction project 725. The transaction project 725 coordinates the transaction packages 700 and their server change operations, so that each server change operation can be executed in a transaction safe manner. Below is an example of an XML transaction project 725 containing a transaction package named “BLPkg_web.XML,” directed to six web servers, a transaction package named “BLPkg_app.XML,” directed to two application servers, and a transaction package named “BLPkg_db.XML,” directed to two database servers:

<PROJECT>  <BLPkg>   <Name>BLPkg_web.XML</Name>   <Hosts>Web Server1</Hosts>   <Hosts>Web Server2</Hosts>   <Hosts>Web Server3</Hosts>   <Hosts>Web Setver4</Hosts>   <Hosts>Web Server5</Hosts>   <Hosts>Web Server6</Hosts>  </BLPkg>  <BLPkg>   <Name>BLPkg_app.XML</Name>   <Hosts>App Server1 </Hosts>   <Hosts>App Server2</Hosts>  </BLPkg>  <BLPkg>   <Name>BLPkg_db.XML </Name>   <Hosts>Db Server1</Hosts>   <Hosts>Db Server2</Hosts>  </BLPkg> </PROJECT>

In this example, first, the package “BLPkg_web.XML” is to be executed on six web servers named Web Served through Web Server6, the package “BLPkg_app.XML” is to be executed on two application servers, and the package “BLPkg_db.XML” is to be executed on two database servers.

The configuration manager 25B, or any of the application programs 25, prepares the transaction package 700 and instructs the virtual server client 30 to pass the package 700 to the virtual server agents 35 associated with the target servers. After receiving the transaction package 700, the virtual server agents 35 unpack the package 700 and execute the operations on their associated target servers 15. A method for achieving this is shown in FIG. 8

In Step 800, Configuration manager 25B checks the prerequisite information of the requested change operations. Examples of the prerequisite information include checks related to integrity and completeness of package such as prompting for user name and password if required, making sure simple dependencies are resolved, and making sure the corresponding files are in the package.

After the prerequisites are checked in step 800, in step 810, the configuration manager 25B checks for the sequence information setting forth the execution order of the requested change operations in the package's instruction set 715. If the sequence information is not provided in the instruction set 715, the configuration manager 25B accesses the external dependency graph 720 to obtain the sequence information. After completion of step 810, in step 815, the configuration manager 25B transfers the package 700 and the associated files and parameter files to the virtual server agents 35 via the virtual server client 30.

In one embodiment, die virtual server agent 35 receives the completed transaction package 700 via the virtual server client 30. On the virtual server agent 35, in step 820, the named parameters are substituted with actual values. The virtual server agent 35 then executes the server change operations specified in the transaction package for its associated target server 15. In another embodiment, instead of transporting the completed transaction package 700, the virtual server client 30 may transport only the parameter file 710 and the instruction set 715, without the actual files or any of the server objects, to the virtual server agent 35, in case the user 10 optionally elects to proceed with a dry run. The dry run provides an additional set of tests to see if the instruction set 715 can be carried out by the recipient virtual server agent 35 before making any changes on the target server 15. After the virtual server agent 35 receives a partial transaction package 700 from the virtual server client 30, in step 820, the parameters are substituted with actual values as provided in the parameter file 710. After completing the dry run, the configuration manager 25B can transfer the entire package 700 to the virtual server agents 35 via the virtual server client 30 for actual execution.

Before executing the operations on each target server 15, in step 835, the agent updates an undo log. The undo log, which is maintained for each target server, records the executed operations, and tracks the changes made by these operations, so that if an error occurs while executing the servers change operations, the operations can be undone as recorded in the undo log. This can be achieved by tracing back the steps performed during the server change operations using the undo log records. In one embodiment, the undo log is identical in structure to the transaction package, but with the parameter files arranged in reverse order and the change operations recorded in reverse order. Finally in step 840, the server change operations are executed on the target servers 15.

Referring now to FIG. 9, a method for executing and undoing server change operation in a transaction safe manner is described. In step 900, one or more application programs 25 generate and specify change operations using a transaction package 700. Different types of server objects and corresponding target servers 15 are supported through the instruction set provided in the transaction package 700. Next, in step 910, the application program specifies the target server(s) to which the server change operations are directed. In step 920, the application program specifies the parameter file that provides parameters and their corresponding values defined for each of the target servers, and places this information in the transaction package 700. In step 930, the server client 30 sends the server change operation from the application program 25 to the virtual server agents 35 on the target servers 15. In step 940, the target servers 15 execute the server change operations in a transaction-safe manner.

Configuration Manager

Referring now to FIG. 10, the configuration manager 25B is an exemplary application program 25 that tracks changes and compliance and configures target servers by generating and deploying a transaction package 700. The configuration manager 25B provides a method and system for configuring different servers using a variety of software modules, such as a browser 1000, a template 1010, a recorder 1020, a reference model 1030, a comparator 1040, and a corrector 1050.

The browser 1000 browses server objects in different servers in real time, to examine the current configuration of the server objects contained inside of the servers 15. First, the user selects a server he/she wishes to browse. Through browsing, a collection of server object identifiers that identify each server object are selected and entered into the template 1010. Alternatively, instead of building the template 1010 from browsing, the template 1010 may be imported from an external vendor. The template 1010 may also be created by including one or more previously defined templates. In one embodiment, the template 1010 is an abstract template that identifies server objects contained in a server. For example, if an Apache server contains files, and configuration file entries, an Apache server template 1010 contains identifiers that are sufficient to identify the files and configuration file entries of the Apache server. After identifying server objects on the template 1010, values of these identified server objects are recorded to configure servers on the network.

In one embodiment, the recorder 1020 takes a snapshot of values (e.g., attributes) associated with a collection of server objects. In another embodiment the recorder 1020 takes a snapshot of values of the server objects identified in the template 1010. The values may come from any of the servers browsed by the browser. Alternatively, the values may come from a selected server, also referred to as a gold server. Examples of the values (or attributes) of files recorded in the snapshots include, but are not limited to, file names, sizes, permissions, owners, creation dates, modification dates, and versions. Examples of directory attributes (or values) recorded in snapshots are directory locations, permissions, creation dates, and modification dates. Examples of registry entry attributes recorded in snapshots are field names, and corresponding values.

In one embodiment, the recorded values or snapshot results of the gold server are used to derive baseline values and compliance ranges in the reference model 1030. In another embodiment, instead of creating the reference model, the snapshot results can be directly used to track changes, configure existing servers and provision new servers on the network. Snapshot results record a configuration of a server at a point in time, thus they cannot be changed. However, the reference model 1030 can be edited to represent the reference implementation for compliance or provisioning purposes.

For example, when the snapshots of the gold server are taken by the recorder 1020, the values collected in the snapshots are saved in the reference model 1030. Based on the values of the gold server, the reference model 1030 can provide information, such as baseline values and compliance ranges, for use by other servers in the network to identify their drift in comparison to the gold server. The baseline values provide basis for configuration of other servers. The compliance ranges are ranges of acceptable configuration values that are accentable for other servers for these servers to be in compliance. Alternative to creating a reference model 1030, the reference model 1030 may be an imported reference model that was created by an external vendor. Also, the reference model 1030 may include one or more previously defined reference models. Subsequently, the comparator 1040 compares a server to the reference model 1030 to track changes and track compliance in the server.

In another example, a snapshot of a current configuration of a server captured at an arbitrary point in time can be compared against a live-version of the captured server to track changes in the captured server. The configuration of a server can include explicitly selected server objects that are on the server or implicitly selected server objects provided through the template 1010.

In yet another example, the snapshot results of recurring snapshots of a server taken at scheduled time intervals (e.g., daily, weekly, etc.) can be used to track changes in the captured server. In this example, the first snapshot of the server serves as a baseline, on that for subsequent snapshots, only the changes against the baseline are saved in the snapshot results. Thus, any snapshot result taken during these time intervals can be reconstructed to view its entire configuration and content by combining the baseline with the incremental changes saved in the snapshot result. Moreover, the incremental changes show changes occurred in the configuration of the server over a period of time for the user to analyze the changes of this particular server. Subsequently, the comparator 1040 compares a live-version of the server to the baseline snapshot to track and save only changes on the server.

In one embodiment, two live servers can be compared against each other without the snapshots or the reference model 1030, on an ad-hoc basis. In this embodiment, the user 10 may explicitly select server objects that are commonly shared between the two live servers so that the comparator 1040 can compare the values of the sever objects between these servers. In another example of this embodiment, the comparator 1040 compares the values of the server objects that are implicitly provided by the template 1010.

After comparing the servers identifying the discrepancies present in the compared servers, the corrector 1050 corrects the discrepancies in each target server. The corrector 1050 examines the discrepancies and generates server change operations that request services from the operating systems running on the target servers to correct these discrepancies. As described previously, server change operations can be presented to the servers as a transaction package 700 to remove discrepancies and synchronize the target servers to the reference model 1030 in a transaction-safe manner. Similarly, in one embodiment, configuration updates to the target servers cart be made by the transaction package 700. In particular, the configuration manager 25B first makes all the updates to the reference model 1030, which then packages the discrepancies (introduced in the reference model) as updates in the transaction package 700. The transaction package 700 is propagated to the target servers to synchronize them to the updated reference model 1030.

The reference model 1030 can also be used to provision a new server to ensure consistency in the configuration of the servers in the network when a new server is added. For example, an Apache reference model 1030 can be used to provision a new Apache server so that the configuration of all Apache servers in the network are consistent with each other.

In addition, both the reference model 1030 and snapshots can be used restore a previous configuration of a server in case of a disaster recovery. In particular, in case of a server failure, this server can recover its most recent configuration and contents by reconstructing the server's configuration from the snapshots taken over a period of time. With the reference model 1030, in case of a server failure, the server can look to the basis values of the gold server in the reference model 1030 and synchronize to this configuration to be in compliance again.

FIG. 11 shows an exemplary method of tracking changes and compliance, and correcting component as well as parameter-level changes across multiple servers. In step 1100, the configuration manager 25B browses servers in the network to obtain server asset and configuration (together referred to as server objects) status information for each server. In the browsing step 1100, selected server objects and their dependent server objects are browsed in real time. In one embodiment, live servers in the network and their stored server objects can be browsed via a Graphic User Interface (GUI) which presents the servers and server objects hierarchically.

Next, in step 1105, the configuration manager 25B, selects identifiers of the browsed server objects to be in the template 1010. The identifiers can include any information about the server object that is sufficient to identify the server object. Next in step 1110, the configuration manager selects a gold server, to provide a baseline configuration and configuration ranges for other servers in the network. In step 1115 snapshots of the values of the server objects identified in the template that are present in the gold server are recorded in the reference model 1030. Based on the values recorded in the reference model 1030, in step 1115, the reference model establishes compliance rules, such as the baseline configuration and the compliance ranges. Alternatively, the snapshots of the values are not recorded in the reference model. Instead, the snapshot results of a server can be used to directly compare against a live-version of this server to track changes.

In step 1120, the configuration manager 25B selects servers and their respective configuration parameters (also referred to as server objects) to compare against the reference model 1030. These servers can be selected from any live servers on the network. Alternatively, these live-version servers can also be directly compared against their own snapshots, taken at an arbitrary point in a time, or taken over a specific period, without the reference model 1030, to track compliance and changes in these servers. The results of the comparing step 1125 can be viewed item-by-item, by showing which software (or server objects) are installed or not stalled, or host-by-host, by showing each server and the server objects present on the server.

Finally, based on the discrepancies obtained during the comparing step 1120, a correcting step 1130 fixes the servers to be in compliance by synchronizing configuration of these servers with the reference model 1030 or the snapshots. Moreover, a newly added servers can be provisioned to be consistent with other servers by synchronizing this new server to the reference model 1030.

Referring to FIG. 12, in one embodiment, the configuration manager 25B can manage the same type of configuration parameters (also referred to as server objects) across different servers by specifying one or more categories for the parameters in templates. The template 1200 first specifies the “server-type” category (e.g., application server category 1210, web server category 1215, and database server category 1220) to specify to what type of server each server object in the network belongs, and then specifies the “parameter-type” category (e.g., network parameters, capacity parameters, availability parameters, performance parameters, security parameters) to specify the parameter type to which each server object belongs. Each server object in the template 1200 can be classified under one or more categories, sub-categories and keywords. In one example, for security parameters, sub-categories can include encryption type and authentication type, and keywords can include “read-only” and constant.

Referring briefly to FIG. 13, an example of the system described with reference to FIG. 12 is shown. In this example, Internet 1300 and intranet 1305 are available to different categories of servers 1215, 1210, 1220 through firewalls 1310. Web server category 1215 include an IIS server 1215A for intranet sex-vices and Apache Servers 1215B, 1215C for the HTTP/FTP and Wireless/Video Internet services respectively. Application server category 1210 include servers running sales applications 1210A, on-line brokerage applications 1210B, and customer service application 1210C. Database server category 1220 include sales, trading, and account databases 1220A, 1220B, and 1220C.

Referring again to FIG. 12, each server object in the template 1200 is placed into a parameter category based on its function and server type. For example, the server objects may be grouped into network parameters 1330, capacity parameters 1335, availability parameters 1340, performance parameters 1345, and security parameters 1350. The configuration manager 25B selects categorically related server objects from each category of servers and stores them in the template 1200. For example, all the security parameters in the application server category 1210 and all the network parameters in the application server category 1210 are stored in the template 1200.

Referring again to FIG. 13, for the web server category 1215, web server configuration parameters a, b, c, d, e are respectively categorized as network parameters 1330, capacity parameters 1335, availability parameters 1340, performance parameters 1345, and security parameters 1350. For the application server category 1210, application server configuration parameters i, ii, iii, iv, v are respectively categorized as network parameters 1330, capacity parameters 1335, availability parameters 1340, performance parameters 1345, and security parameters 1350. Similarly, for the database server category 1220, database server configuration parameters I, II, III, IV, V are respectively categorized as network parameters 1330, capacity parameters 1335, availability parameters 1340, performance parameters 1345, and security parameters 1350.

After categorizing all the server objects in the template 1200 by the server-type categories and the parameter-type categories, a new template can be derived from the template 1200 to isolate the categorically related server objects across the server categories and manage the configuration parameters as if they belonged to a single server. For example, security configuration parameters of an individual web server can be changed in concert with other security configuration parameters for other web servers, as well as for application servers and database servers. In the example shown in FIG. 13, for instance, web server network parameter can be changed in concert with network parameters i of the application server category 1210 and parameter I of the database server category 1220. Similarly, Web server capacity parameter b can be changed in concert with other capacity parameters ii of the application server category 1210 and II of the database server category 1220. Likewise, correlated changes of parameters can be performed for the availability parameters 1346, the performance parameters 1345, and the security parameters 1350.

Referring to FIG. 14, an exemplary screenshot of a GUI-based configuration manager 25B includes a module referred to as an asset browser 1400, which allows a user 10 to browse live remote target servers 15, and to manage and store frequently used server assets (also referred to as server objects). The asset browser 1400 is divided into two panes. The left pane 1410 functions as either a Servers pane or a Depots pane, depending on a tab 1420 selected by the user 10. The Contents pane 1430 on the right side displays the contents of an item selected in the Servers or the Depots pane.

In FIG. 14, the left pane 1410 displays the Servers pane which shows a hierarchical depiction of the servers that the user 10 manages. For example, the user 10 may arrange the servers into groups based on geographical location and/or operating system. Server groups are divided into the eastern and western divisions of an enterprise, and within those groups, another level of hierarchy for Windows, UNIX, and Linux-based servers. More specifically in FIG. 14, within the servers in the Easter Division 1440, the patches object 1460 in the sun 2 server 1450 is selected. The Contents pane 1430 shows the contents of the patches object 1460.

The Depots pane (not shown) can display central repositories of commonly accessed server objects (e.g., all files, software to be deployed, and pointers to the content of the files and software residing in other servers in the network). In additions, the Depots pane stores scheduled tasks to be performed, snapshots of server objects, Shell scripts, and transaction packages 700.

EXAMPLE

In an overall example of operation of the configuration manage, the configuration manager browses live servers on a network, tracks changes and compliance in the servers by comparing their server objects against a reference model or a snapshot, and identifying any discrepancies from the reference model or the snapshot. By making records of the values of the gold server's server objects through a snapshot and saving the results as a reference model, the reference model may be used to audit other servers, to determine how configurations of the other servers have changed from the reference model. Alternatively, a server's own snapshot can be taken arbitrarily, or over a specific period of time to track changes in the server, without using the reference model. In one example, the server objects being compared in the audit process are provided automatically by the configuration manager via templates. In another example, the user may manually select the server objects to compare. Additionally, the audit process can be scheduled to track compliance over time.

After identifying server configuration discrepancies present in the servers, the configuration manager 25B corrects the discrepancies by generating a transaction package 700, that contains server change operations to be performed on the servers 15. The transaction package 700 bundles configuration changes operations and corresponding instructions to be deployed on remote target servers 15 to correct any discrepancies that exist in server objects contained in those servers 15. With the transaction package 700, the configuration manager 25B can install any types of server objects from a single source to multiple locations. Similarly, the configuration manger 25B can uninstall software, and undo server object deployments on the remote target servers 15. As discussed previously, certain values inside the transaction package 700 can be parameterized and subsequently replaced with real values during the deployment of the transaction package 700 on the target servers 15, without changing the contents of the transaction package 700 for each target server 15.

In one particular example, the configuration manager 25B can be used to move a working MS SQL server database from a gold server to multiple target servers 15, to duplicate the changes made in this database to multiple servers. To achieve this duplication, the user 10 copies the changes made on the SQL Server database to the reference model, so that the configuration manager 25B can later bundle these changes to other instances of the same SQL Server database in the remote target servers 15. The reference model and the remote target servers 15 have the same initial installation of the SQL Server database. The configuration manager takes a snapshot of the gold server to create a reference model that is used as a baseline to compare the SQL. Server databases between the gold server and the target servers 15. The necessary database changes are first made to the gold server. Next, the configuration manager 25B creates a transaction package 700 to bundle these changes to be deployed on the target servers 15. The configuration manager 25B deploys the transaction package 700 to the virtual server agents 35 associated with the target servers 15 to request these changes to be made on their SQL. Server databases.

In some embodiments the functionality of the systems and methods described above may be implemented as software on one or more general purpose computers. In such an embodiment, the software may be written in any one of a number of high-level languages, such as FORTRAN, PASCAL, C, C++, LISP, JAVA, or BASIC. Further, the software may be written in a script, macro, or functionality embedded in commercially available software, such as EXCEL or VISUAL BASIC. Additionally, the software could be implemented in an assembly language directed to a microprocessor resident on a computer. For example, the software could be implemented in Intel 80x86 assembly language if it were configured to run on an IBM PC or PC clone. The software may be embedded on an article of manufacture including, but not limited to, a “computer-readable medium” such as a floppy disk, a hard disk, an optical disk, a magnetic tape, a PROM, an EPROM, or CD-ROM.

Variations, modifications, and other implementations of what is described herein will occur to those of ordinary skill in the art without departing from the spirit and the scope of the invention as claimed. Accordingly, the invention is to be defined not by the preceding illustrative description but instead by the spirit and scope of the following claims. 

What is claimed is:
 1. A method for executing change operations across a plurality of servers in a transaction-safe manner, the method comprising: specifying change operations for a collection of server objects in a transaction package, wherein the server objects comprise at least one of server files and configuration file entries; identifying two or more target servers for execution of the change operations specified in the transaction package; specifying parameter values specific to the target servers for each of the identified target servers in a parameter file; first, communicating a test transaction package to a virtual server agent, the test transaction package including the parameter file and an instruction set without the server files or any of the server objects; executing a test run with a set of tests to see if the instruction set can be carried out by the virtual server agent before making any changes on the target servers, the tests including substituting named parameters for each of the identified target servers with values from the parameter file; and after completing the test run, transferring the transaction package to the virtual server agent for execution of the specified change operations on each of the identified target servers.
 2. The method of claim 1, wherein communicating the transaction package to the identified target servers comprises transporting the transaction package to respective virtual server agents at the identified target servers.
 3. The method of claim 2, wherein communicating the transaction package to the identified target servers comprises transporting the transaction package to the respective virtual server agents at the identified target servers via a virtual server client.
 4. The method of claim 2, wherein communicating the transaction package to the identified target servers comprises transporting the transaction package with only the parameter file and an instruction set to the respective virtual server agents at the identified target servers.
 5. The method of claim 4, wherein executing a test run includes testing to see if the instruction set can be carried out by the respective virtual server agents at the identified target servers.
 6. The method of claim 5, wherein testing to see if the instruction set can be carried out by the respective virtual server agents at the identified target servers includes substituting named parameters with actual values in the parameter file.
 7. The method of claim 5, wherein communicating the transaction package to the identified target servers comprises: after the test run, transporting a complete transaction package including one or more actual change files and server objects to the respective virtual server agents at the identified target servers.
 8. The method of claim 7 further comprising, executing server change operations specified in the complete transaction package at the identified target servers.
 9. The method of claim 8, wherein executing server change operations specified in the complete transaction package at the identified target servers includes: first, updating respective undo logs maintained for each of the identified target servers.
 10. The method of claim 9, wherein executing server change operations specified in the complete transaction package at the identified target servers further includes: if an error occurs while executing the servers change operations, undoing operations as recorded in the undo log.
 11. A computer program product embodied in non-transitory computer-readable media that includes executable code, which when executed by one or more processors implement change operations across a plurality of servers in a transaction-safe manner by: specifying change operations for a collection of server objects in a transaction package, wherein the server objects comprise at least one of server files and configuration file entries; identifying two or more target servers for execution of the change operations specified in the transaction package; specifying parameter values specific to the target servers for each of the identified target servers in a parameter file; first, communicating a test transaction package to a virtual server agent, the test transaction package including the parameter file and an instruction set without the server files or any of the server objects; executing a test run with a set of tests to see if the instruction set can be carried out by the virtual server agent before making any changes on the target servers, the tests including substituting named parameters for each of the identified target servers with values from the parameter file; and after completing the test run, transferring the transaction package to the virtual server agent for execution of the specified change operations on each of the identified target servers.
 12. The computer program product of claim 11, wherein the executable code when executed by one or more processors implement change operations across a plurality of servers in a transaction-safe manner further by: transporting the transaction package to respective virtual server agents at the identified target servers.
 13. The computer program product of claim 12, wherein the executable code when executed by one or more processors implement change operations across a plurality of servers in a transaction-safe manner further by: transporting the transaction package to the respective virtual server agents at the identified target servers via a virtual client server.
 14. The computer program product of claim 12, wherein the executable code when executed by one or more processors implement change operations across a plurality of servers in a transaction-safe manner further by: transporting the transaction package including only the parameter file and an instruction set to the respective virtual server agents at the identified target servers.
 15. The computer program product of claim 14, wherein the executable code when executed by one or more processors implement change operations across a plurality of servers in a transaction-safe manner further by: executing a test run with a set of tests to see if the instruction set can be carried out by the respective virtual server agents at the identified target servers.
 16. The computer program product of claim 15, wherein executing a test run with a set of tests to see if the instruction set can be carried out by the respective virtual server agents at the identified target servers includes substituting named parameters with actual values in the parameter file.
 17. The computer program product of claim 16, wherein the executable code when executed by one or more processors implement change operations across a plurality of servers in a transaction-safe manner further by: after the test run, transporting a complete transaction package including one or more actual change files and server objects to the respective virtual server agents at the identified target servers.
 18. The computer program product of claim 17, wherein the executable code when executed by one or more processors implement change operations across a plurality of servers in a transaction-safe manner further by: executing server change operations specified in the complete transaction package at the identified target servers.
 19. The computer program product of claim 18, wherein the executable code when executed by one or more processors implement change operations across a plurality of servers in a transaction-safe manner further by: first, updating respective undo logs maintained for each of the identified target servers.
 20. The computer program product of claim 19, wherein the executable code when executed by one or more processors implement change operations across a plurality of servers in a transaction-safe manner further by: if an error occurs while executing the servers change operations, undoing operations as recorded in the undo log. 